#include "SubscriptExpr.h"
#include <llvm/Support/raw_ostream.h>

using namespace std;

// Implementation of operator<< as friend 
llvm::raw_ostream& operator<< (llvm::raw_ostream& outs, const SubscriptExpr& expr) {
    outs << "[ ";
    for (int i = 0; i < expr.size(); i++) {
        outs << expr[i] << " ";
    }
    outs << "] " << expr.arrayName << " " << expr.stmtIndex;
    return outs;
}
